package cn.wolfcode.mapper;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Role;
import cn.wolfcode.query.EmployeeQueryObject;
import cn.wolfcode.query.QueryObject;

import java.util.List;

public interface RoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

    //分页查询
    List<Role> selectForList(QueryObject qo);

    //按照员工的ID号查询 员工具有的角色身份
    List<Role> selectByEmployeeId(Long id);

    List<String> getRoleSnByEmployeeId(Long id);
}